/*
 *  Chord.cpp
 *  SoundController0002
 *
 *  Created by jiro on 11/06/12.
 *  Copyright 2011 jiro music. All rights reserved.
 *
 */

#include "ChordList.h"

#include "SoundList.h"
#include "HarmonicSystem.h"
#include "../../sc/AllExceptions.h"
#include <sstream>

namespace sc
{
namespace hs
{
	std::string ChordList::ToString( int tabCount ) const
	{
		std::stringstream ss;
		std::string tabs;
		for ( int i = 0; i < tabCount; i++ )
		{
			tabs.append( "\t" );
		}
		ss << tabs << "ChordList:\n";
		for ( int i = 0; i < size(); i++ )
		{
			ss << at( i ).ToString( tabCount + 1 );
			if ( i != size() - 1 )
			{
				ss << "\n";
			}
		}
		return ss.str();
	}

}
}